﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Dotnet.Ex.Communication.Net.MQBase
{
    /// <summary>
    /// MQ消息队列工厂接口
    /// </summary>
    public interface IMQMessageQueueFactory
    {
        /// <summary>
        /// MQ名称
        /// </summary>
        string Name { get; }

        /// <summary>
        /// 创建消息队列
        /// </summary>
        /// <param name="brokerInfo"></param>
        /// <returns></returns>
        IMQMessageQueue CreateMessageQueue(MQBrokerInfo brokerInfo);
    }
}
